﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SalaryYearEnd.aspx.cs" Inherits="UI.ModSalary.SalaryYearEnd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>年终奖</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
         <script type="text/javascript" src="../JS/calendar.js"></script>
</head>
<body>
    <form id="form1" runat="server">
   <div id="pagetop" class="pagetop">
        <div class="pagetopleft">年终奖</div>
        <div class="pagetopright">        
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="66px" ></asp:TextBox>
          
            <asp:DropDownList ID="ddlYear" runat="server" CssClass="InputCss"></asp:DropDownList>
                年
                  <asp:DropDownList ID="ddlDeptID" runat="server" CssClass="InputCss">
            </asp:DropDownList>
             <asp:DropDownList ID="ddlSetsID" runat="server" CssClass="InputCss" >
                    </asp:DropDownList>
            <asp:Button ID="btnSearch" runat="server" Text="查询"  CssClass="ButtonCss" TabIndex="0" onclick="btnSearch_Click" />
             <asp:Button ID="btnCreate" runat="server" Text="生成"  CssClass="ButtonCss"
             OnClientClick="return confirm('确定要生成年终奖吗?\n');" onclick="btnCreate_Click"  />    
              <asp:Button ID="btnDel" runat="server" Text="删除" CssClass="ButtonCss" 
                onclick="btnDel_Click"   />  
            <asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss"   />
            <asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" 
                onclick="btnExcel_Click"   />
            
               <asp:Button ID="btnApply" runat="server" Text="发放" CssClass="ButtonCss" 
                onclick="btnApply_Click"   />
            &nbsp;
        </div>
    </div>


    <!--
    部门	银行账号	工号	姓名	职务	状态	入职日期	出勤月数		
    基本工资	职补	全勤	小计	未出勤月	累计请事假	请产假	其它
					
   -->
     <asp:GridView ID="gvList" runat="server" DataKeyNames="SalId" Width="1400" AutoGenerateColumns="False"
       EnableViewState="false" 
 GridLines="Horizontal" CssClass="td" 
        onrowdatabound="gvList_RowDataBound" ShowFooter="True" >
        <Columns>
        

            <asp:BoundField DataField="SalId" HeaderText="SalId" 
                ItemStyle-HorizontalAlign="Center">
              
            </asp:BoundField>
             <asp:BoundField DataField="SalYear" HeaderText="年份" ItemStyle-HorizontalAlign="Center">
                <ItemStyle Width="50px" />
            </asp:BoundField>
            <asp:BoundField DataField="DeptName" HeaderText="部门" SortExpression="DeptName" >
                <ItemStyle HorizontalAlign="Center" Width="80px" />
            </asp:BoundField>
             <asp:BoundField DataField="SalaryAccount" HeaderText="银行账号" >
                <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="工号" SortExpression="EmpCode"  ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                   <a href="javascript:ShowLink('SalaryYearAdd.aspx?SalId=<%# Eval("SalId")%>',800,600)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="70px" />
            </asp:TemplateField>
             <asp:TemplateField HeaderText="姓名" SortExpression="EmpName" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                   <a href="javascript:ShowLink('SalaryYearAdd.aspx?SalId=<%# Eval("SalId")%>',800,600)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="70px" />
            </asp:TemplateField>
            <asp:BoundField DataField="DutyName" HeaderText="职务" SortExpression="DutyName">
                <ItemStyle Width="85px" />
            </asp:BoundField>
                      
                          <asp:BoundField DataField="StateName" HeaderText="状态" SortExpression="StateName">
                <ItemStyle Width="55px" />
            </asp:BoundField>
            <asp:BoundField DataField="JoinTime" HeaderText="入职日期" DataFormatString="{0:d}" SortExpression="JoinTime">
                <ItemStyle Width="80px" />
            </asp:BoundField> 
             <asp:BoundField DataField="WorkMonthInYear" HeaderText="出勤月数" SortExpression="WorkMonthInYear">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="n01k" HeaderText="基本工资" DataFormatString = "{0:F1}" SortExpression="n01k">
                <ItemStyle Width="70px" />
            </asp:BoundField>
                
                    <asp:BoundField DataField="n02k" HeaderText="职补" DataFormatString = "{0:F1}" SortExpression="n02k">
                <ItemStyle Width="60px" />
            </asp:BoundField>

              <asp:BoundField DataField="n03k" HeaderText="全勤" DataFormatString = "{0:F1}" SortExpression="n03k">
                <ItemStyle Width="50px" />
            </asp:BoundField>
               <asp:BoundField DataField="n11k" HeaderText="小计" DataFormatString = "{0:F1}" SortExpression="n11k">
                <ItemStyle Width="70px" />
            </asp:BoundField>

              <asp:BoundField DataField="n20k" HeaderText="未出勤月" DataFormatString = "{0:F1}" SortExpression="n20k">
                <ItemStyle Width="70px" />
            </asp:BoundField>
              <asp:BoundField DataField="n21k" HeaderText="事假" DataFormatString = "{0:F1}" SortExpression="n21k">
                <ItemStyle Width="60px" />
            </asp:BoundField>
              <asp:BoundField DataField="n22k" HeaderText="产假" DataFormatString = "{0:F1}" SortExpression="n22k">
                <ItemStyle Width="60px" />
            </asp:BoundField>
              <asp:BoundField DataField="n23k" HeaderText="其它" DataFormatString = "{0:F1}" SortExpression="n23k">
                <ItemStyle Width="60px" />
            </asp:BoundField>
              <asp:BoundField DataField="n31k" HeaderText="总计" DataFormatString = "{0:F1}" SortExpression="n31k">

                <ItemStyle Width="70px" />
            </asp:BoundField>
              <asp:BoundField DataField="ZipCode" HeaderText="身份证" SortExpression="ZipCode">
                <ItemStyle Width="100px" />
            </asp:BoundField>
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                <ItemStyle Width="120px" />
            </asp:BoundField>
        </Columns>
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
            <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
         <div style="padding-left:50px; visibility:hidden;">        
            
          发放 <asp:DropDownList ID="ddlYear1" runat="server" CssClass="InputCss"></asp:DropDownList>
                年的奖金，到指定年月工资上
            <asp:DropDownList ID="ddlYear2" runat="server" CssClass="InputCss"></asp:DropDownList>
                年
                  <asp:DropDownList ID="ddlMonth2" runat="server" CssClass="InputCss">
            </asp:DropDownList>月
              <asp:DropDownList ID="ddlSetsID2" runat="server" CssClass="InputCss" >
                    </asp:DropDownList>
            <asp:Button ID="btnSet" runat="server" Text="发放奖金"  CssClass="ButtonCss" 
              TabIndex="0" onclick="btnSet_Click" Enabled="False"  />
           
    
        </div>
    </form>
</body>
</html>
